let util = {
	jumpPage: function(url:any,type?:any) {
		if(type=='tabBar') {
			uni.switchTab({
				url: url
			})
			return
		}
		uni.navigateTo({
			url: url
		})
	},
	goBack: function() {
		let platform = process.env.VUE_APP_PLATFORM
		if(platform=='h5') {
			history.back()
		}else {
			uni.navigateBack({})
		} 
	}
}
export default util